package net.mgsx.product.t2m.modisco.utility;
import java.util.Collection;

import net.mgsx.product.t2m.modisco.tools.ModiscoUtils;

import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;
import org.eclipse.gmt.modisco.java.ClassDeclaration;
import org.eclipse.gmt.modisco.java.ClassInstanceCreation;

public class GetInstanciations implements IJavaModelQuery<ClassDeclaration, Collection<ClassInstanceCreation>> {
	public Collection<ClassInstanceCreation> evaluate(final ClassDeclaration context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException 
	{
		return ModiscoUtils.getNonProxyElements(context, ClassInstanceCreation.class);
	}
}
